import http from "../utils/request"
// 首页登录记录
export let getloginlogApi=()=>http.get("/getloginlog")


//获取菜单权限  学生信息
export let getStudentSpace=(page=1,count=10,classes)=>http.get('/students/getstulist',{
    params:{
        page,
        count,
        class:classes
    }
})

// 增加学生信息
export let addStudentSpace=(params)=>http.post('/students/addstu',params)


// 删除学生信息

export let deleteStudentSpace=(sId)=>http.get('/students/delstu',{
    params:{
        sId
    }
})


// 修改学生信息

export let changeStudentSpace=(param)=>http.post('/students/updatestu',param)


// 搜索学员

export let findStudent=(key="",count=10,page=1)=>http.get('/students/searchstu',{
    params:{
        key,
        count,
        page
    }
})


// 上传学员头像

export let studentPictor=(headimgurl)=>http.post('/students/uploadStuAvatar',headimgurl)
